<template>
	<view class="Content-right">
		<!-- 消息 / 扫一扫 -->
		<uni-icons type="scan" size="20" style="margin: 6px;" @click="ScanCode"></uni-icons>
		<!-- <uni-icons type="email-filled" size="20" @click="messages"></uni-icons> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
					scanType: '',
					result: ''
			};
		},
		methods:{
			ScanCode(){
				 // 允许从相机和相册扫码
				uni.scanCode({
					success: (res) => {
						this.scanType = res.result
						this.result = res.result
					}
				});
	
			}
			
		},
		
	}
</script>

<style lang="scss">
		.Content-right{
			display: flex;
			align-items: center;
		}
</style>
